﻿using System;
using System.Runtime.Serialization;
using OurDailyBread.ViewModel;

namespace OurDailyBread
{
    [DataContract()]
    public class AppContext
    {
        [DataMember]
        public DateTime currentDisplayDate { get; set; }
        [DataMember]
        public string BreadTitle { get; set; } // Title of the daily bread
        [DataMember]
        public string VerseTitle { get; set; } // such as "John 1:13"
        [DataMember]
        public string BreadContent { get; set; } // content of the daily bread
        public string ShortContent { get; set; } // first 250 char of the content
        [DataMember]
        public string ShortVerse { get; set; } // short verse of the daily bread
        [DataMember]
        public string VerseContent { get; set; } // full bible verse of the daily bread
        public bool IsFav { get; set; }
        //public DailyBreadFavorites Favorite { get; set; }
        public bool InitialLoad { get; set; }

        public Uri RefVerseUri { get; set; }

        public string BreadUrl { get; set; }

        public MainViewModel mvw { get; set; }

        public RoamingLikes selectedLike { get; set; }

        public string ImageUrl { get; set; }

        public AppContext(DateTime currentDate)
        {
            currentDisplayDate = currentDate;
            IsFav = false;
            //Favorite = null;
        }
    }
}
